# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=metacity
pkgver=3.46.0
pkgrel=3
pkgdesc="Metacity is the Gtk+3-based window manager used in gnome-flashback"
url="https://wiki.gnome.org/Projects/Metacity"
arch="all"
license="GPL-2.0-or-later"
depends="zenity gsettings-desktop-schemas"
makedepends="
	glib-dev
	gsettings-desktop-schemas-dev
	gtk+3.0-dev
	libcanberra-dev
	libgtop-dev
	libsm-dev
	libx11-dev
	libxcomposite-dev
	libxcursor-dev
	libxinerama-dev
	libxpresent-dev
	libxrandr-dev
	libxres-dev
	pango-dev
	startup-notification-dev
	vulkan-headers
	vulkan-loader-dev
	"
subpackages="$pkgname-lang $pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/metacity/${pkgver%.*}/metacity-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
5a203a4190dc919ec83fa3f4f7a86aa1594c82051b4e5afb76eb11acb38c573367deca85dead64564e2e96304903cd84eb5b4fc904ddc0672677114103d299b2  metacity-3.46.0.tar.xz
"
